diff --git a/src/pyscanner.l b/src/pyscanner.l index 9408c7d2548..9ec69bed78b 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -401,7 +401,6 @@ static void searchFoundDef() current->startLine = yyLineNr; current->bodyLine = yyLineNr; current->section = Entry::FUNCTION_SEC; - current->protection = protection = Public; current->lang = SrcLangExt_Python; current->virt = Normal; current->stat = gstat; @@ -774,10 +773,6 @@ STARTDOCSYMS "##" { current->protection=Private; } - else - { - current->protection=Public; - } newEntry(); } "cls."{IDENTIFIER}/{B}"=" { @@ -792,10 +787,6 @@ STARTDOCSYMS "##" { current->protection=Private; } - else - { - current->protection=Public; - } newEntry(); } {TRIDOUBLEQUOTE} { // start of a comment block