summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/convwatch
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 12:11:25 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:13 +0200
commit3a8d3519889a68ddf209ea7c83307bec51cd6da0 (patch)
treeab67ef1b6f1f65443b7c4d0e086fdcff17f84283 /qadevOOo/runner/convwatch
parent8b65a61788aa18e97de068bc75fdeecb20a23026 (diff)
java: remove unused methods
Change-Id: Ibb905e6f3e7d92a0e558f1f6562e5b472cd2717b
Diffstat (limited to 'qadevOOo/runner/convwatch')
-rw-r--r--qadevOOo/runner/convwatch/IniFile.java33
-rw-r--r--qadevOOo/runner/convwatch/PRNCompare.java109
2 files changed, 0 insertions, 142 deletions
diff --git a/qadevOOo/runner/convwatch/IniFile.java b/qadevOOo/runner/convwatch/IniFile.java
index 1e7795d4abd5..eaa511afa47d 100644
--- a/qadevOOo/runner/convwatch/IniFile.java
+++ b/qadevOOo/runner/convwatch/IniFile.java
@@ -198,39 +198,6 @@ class IniFile
return -1;
}
- // i must be the index in the list, where the well known section starts
- private int findLastKnownKeyIndex(int _nSectionIndex, String _sKey)
- {
- _sKey = toLowerIfNeed(_sKey);
- int i = _nSectionIndex + 1;
- for (int j=i; j<m_aList.size();j++)
- {
- String sLine = getItem(j).trim();
-
- if (isRemark(sLine))
- {
- continue;
- }
-
- if (sLine.startsWith("["))
- {
- // found end.
- return j;
- }
-
- int nEqual = sLine.indexOf("=");
- if (nEqual >= 0)
- {
- String sKey = toLowerIfNeed(sLine.substring(0, nEqual).trim());
- if (sKey.equals(_sKey))
- {
- return j;
- }
- }
- }
- return i;
- }
-
private String getValue(int _nIndex)
{
String sLine = getItem(_nIndex).trim();
diff --git a/qadevOOo/runner/convwatch/PRNCompare.java b/qadevOOo/runner/convwatch/PRNCompare.java
index dc9b9eb2344f..501ec30ebe17 100644
--- a/qadevOOo/runner/convwatch/PRNCompare.java
+++ b/qadevOOo/runner/convwatch/PRNCompare.java
@@ -315,115 +315,6 @@ public class PRNCompare
}
- private StatusHelper[] createDiffs(String[] _aRefList, String[] _aPSList, int _nMaxDiffs, TriState _tUseBorderMove)
- {
- if (_nMaxDiffs < 1)
- {
- _nMaxDiffs = 1;
- }
-
- // count, from which file (jpegs) exist more, take the less one
- // more are not compareable
-
- // take the min of both
- int nMin = Math.min(_aRefList.length, _aPSList.length);
- nMin = Math.min(nMin, _nMaxDiffs);
-
- StatusHelper[] aList = new StatusHelper[nMin];
-
-// TODO: if both document do not have same page count, produce an error
-
- int nStatusIndex = 0;
- for (int i=1;i<=nMin;i++)
- {
- String sOldGfx = _aRefList[i];
- String sNewGfx = _aPSList[i];
-
-
- String sDiffGfx = compareJPEGs(sOldGfx, sNewGfx );
- StatusHelper aStatus = new StatusHelper(sOldGfx, sNewGfx, sDiffGfx);
-
- if (sDiffGfx.length() > 0)
- {
- int nResult = identify(sDiffGfx);
- if (nResult == 1)
- {
- aStatus.nDiffStatus = StatusHelper.DIFF_NO_DIFFERENCES;
- }
- else
- {
- try
- {
- int nPercent = estimateGfx(sOldGfx, sNewGfx, sDiffGfx);
-
- aStatus.nDiffStatus = StatusHelper.DIFF_DIFFERENCES_FOUND;
- aStatus.nPercent = nPercent;
-
- if (nPercent > 75 &&
- ((_tUseBorderMove == TriState.TRUE ) ||
- ((_tUseBorderMove == TriState.UNSET) &&
- m_sDocumentType.indexOf("MS PowerPoint") > 0)))
- {
- _tUseBorderMove = TriState.TRUE;
-// TODO: problem is here, that we have to create some new names.
-
- String sBasename1 = FileHelper.getBasename(sOldGfx);
- String sNameNoSuffix1 = FileHelper.getNameNoSuffix(sBasename1);
- String sBasename2 = FileHelper.getBasename(sNewGfx);
- String sNameNoSuffix2 = FileHelper.getNameNoSuffix(sBasename2);
-
- String sTmpDir = util.utils.getUsersTempDir();
- String fs = System.getProperty("file.separator");
-
- String sOld_BM_Gfx = sTmpDir + fs + sNameNoSuffix1 + "-BM-" + StringHelper.createValueString(i, 4) + ".jpg";
- String sNew_BM_Gfx = sTmpDir + fs + sNameNoSuffix2 + "-BM-" + StringHelper.createValueString(i, 4) + ".jpg";
- try
- {
- BorderRemover a = new BorderRemover();
- a.createNewImageWithoutBorder(sOldGfx, sOld_BM_Gfx);
- a.createNewImageWithoutBorder(sNewGfx, sNew_BM_Gfx);
-
- String sDiff_BM_Gfx = compareJPEGs( sOld_BM_Gfx, sNew_BM_Gfx );
-
- aStatus.setFilesForBorderMove(sOld_BM_Gfx, sNew_BM_Gfx, sDiff_BM_Gfx);
-
- if (sDiff_BM_Gfx.length() > 0)
- {
- nResult = identify(sDiff_BM_Gfx);
- if (nResult == 1)
- {
- aStatus.nDiffStatus = StatusHelper.DIFF_AFTER_MOVE_DONE_NO_PROBLEMS;
- aStatus.nPercent2 = 0;
- }
- else
- {
- nPercent = estimateGfx(sOld_BM_Gfx, sNew_BM_Gfx, sDiff_BM_Gfx);
- aStatus.nDiffStatus = StatusHelper.DIFF_AFTER_MOVE_DONE_DIFFERENCES_FOUND;
- aStatus.nPercent2 = nPercent;
- }
- }
- else
- {
- }
- }
- catch(java.io.IOException e)
- {
- GlobalLogWriter.get().println("Exception caught. At border remove: " + e.getMessage());
- }
- }
- }
- catch (java.io.IOException e)
- {
- GlobalLogWriter.get().println(e.getMessage());
- }
- }
-
- }
- aList[nStatusIndex ++] = aStatus;
- }
- return aList;
- }
-
public static String compareJPEGs(String _sOldGfx, String _sNewGfx)
{
String sBasename1 = FileHelper.getBasename(_sOldGfx);