• Noel Grandin's avatar
    remove unused SID constants and associated code · fa135fd0
    Noel Grandin yazdı
    found with a python script that looks like:
    
    process = subprocess.Popen(
      "git ls-files *.hrc | xargs grep -hE '#define +SID_' | cut -d ' ' -f 2 | sort -u",
      shell=True, stdout=subprocess.PIPE)
    for line in iter(process.stdout.readline, b''):
      line = line.strip()
      if line.startswith("//"): continue
      if line.startswith("sfx"): continue
      if len(line) < 10: continue
      i = subprocess.check_output("git grep -nP \"#define +" + line + " \"",
                                  shell=True)
      if i.count("#define") < 2: continue
      print line + "
    " + i
    
    Change-Id: I40eac2569c2b5b129d9459cb723a9d6f26d09264
    Reviewed-on: https://gerrit.libreoffice.org/25715Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
    fa135fd0
fupage.cxx 24 KB