Remove some debugging stuff

This commit is contained in:
Miek Gieben 2011-12-15 11:33:28 +01:00
parent c920777b44
commit fcc9821edd
2 changed files with 1 additions and 4 deletions

View File

@ -34,7 +34,7 @@ const (
_EXPECT_RDATA // The first element of the rdata
)
var DEBUG = true
var DEBUG = false
type ParseError struct {
err string
@ -138,7 +138,6 @@ func ParseZone(r io.Reader, cr chan RR) {
fmt.Printf("%s\n", &ParseError{"Expecting RR type, TTL or class, not this...", l})
}
case _EXPECT_ANY_NOCLASS_BL:
println("IM HERE")
if l.value != _BLANK {
fmt.Printf("%s\n", &ParseError{"No blank before NOCLASS", l})
}

View File

@ -292,7 +292,6 @@ func setNSEC(h RR_Header, c chan Lex) (RR, error) {
rr.Hdr = h
l := <-c
println("NSEC NEXTDOMAIN: ", l.token)
if !IsDomainName(l.token) {
return nil, &ParseError{"bad NSEC nextdomain", l}
} else {
@ -407,7 +406,6 @@ func setTXT(h RR_Header, c chan Lex) (RR, error) {
l := <-c
var s string
for l.value != _NEWLINE && l.value != _EOF {
println("tok", l.token, l.value)
switch l.value {
case _STRING:
s += l.token