2
0
Эх сурвалжийг харах

* some cleanup

git-svn-id: trunk@43765 -
florian 5 жил өмнө
parent
commit
cb44d7d4e2

+ 1 - 2
compiler/ccharset.pas

@@ -25,7 +25,6 @@ unit ccharset;
        tunicodestring = ^tunicodechar;
        tunicodestring = ^tunicodechar;
 
 
        tcsconvert = class
        tcsconvert = class
-         // !!!!!!1constructor create;
        end;
        end;
 
 
        tunicodecharmappingflag = (umf_noinfo,umf_leadbyte,umf_undefined,
        tunicodecharmappingflag = (umf_noinfo,umf_leadbyte,umf_undefined,
@@ -205,7 +204,7 @@ unit ccharset;
               hp:=hp^.next;
               hp:=hp^.next;
            end;
            end;
          getmap:=nil;
          getmap:=nil;
-      end;////////
+      end;
 
 
     function getmap(cp : word) : punicodemap;
     function getmap(cp : word) : punicodemap;
 
 

+ 1 - 7
compiler/widestr.pas

@@ -28,7 +28,7 @@ unit widestr;
   interface
   interface
 
 
     uses
     uses
-       {$if FPC_FULLVERSION<20700}ccharset{$else}charset{$endif},globtype;
+      charset,globtype;
 
 
 
 
     type
     type
@@ -69,7 +69,6 @@ unit widestr;
   implementation
   implementation
 
 
     uses
     uses
-      {$if FPC_FULLVERSION>20700}
       { use only small codepage maps, others will be }
       { use only small codepage maps, others will be }
       { loaded on demand from -FM path               }
       { loaded on demand from -FM path               }
 
 
@@ -81,7 +80,6 @@ unit widestr;
       cp8859_1,cp850,cp437,cp1252,cp646,
       cp8859_1,cp850,cp437,cp1252,cp646,
       cp874, cp856,cp852,cp8859_2,
       cp874, cp856,cp852,cp8859_2,
       cp1250,cp1254,cp1255,cp1256,cp1257,cp1258,
       cp1250,cp1254,cp1255,cp1256,cp1257,cp1258,
-      {$endif}
       globals,cutils;
       globals,cutils;
 
 
 
 
@@ -292,19 +290,15 @@ unit widestr;
     function cpavailable(const s: string): boolean;
     function cpavailable(const s: string): boolean;
       begin
       begin
         result:=mappingavailable(lower(s));
         result:=mappingavailable(lower(s));
-        {$if FPC_FULLVERSION>20700}
         if not result then
         if not result then
           result:=(unicodepath<>'')and(registerbinarymapping(unicodepath+'charset',lower(s)));
           result:=(unicodepath<>'')and(registerbinarymapping(unicodepath+'charset',lower(s)));
-        {$ifend}
       end;
       end;
 
 
     function cpavailable(cp: word): boolean;
     function cpavailable(cp: word): boolean;
       begin
       begin
         result:=mappingavailable(cp);
         result:=mappingavailable(cp);
-        {$if FPC_FULLVERSION>20700}
         if not result then
         if not result then
           result:=(unicodepath<>'')and(registerbinarymapping(unicodepath+'charset','cp'+tostr(cp)));
           result:=(unicodepath<>'')and(registerbinarymapping(unicodepath+'charset','cp'+tostr(cp)));
-        {$ifend}
       end;
       end;
 
 
     procedure changecodepage(
     procedure changecodepage(