Kaydet (Commit) 6d848b2a authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

xmerge: The if statement is redundant

Change-Id: I56c5727470c4dba9ffa7c298fb6ccea5be750f33
Reviewed-on: https://gerrit.libreoffice.org/11894Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 110ae4e4
...@@ -352,10 +352,7 @@ public class CellStyle extends Style implements Cloneable { ...@@ -352,10 +352,7 @@ public class CellStyle extends Style implements Cloneable {
Format rhs = tStyle.getFormat(); Format rhs = tStyle.getFormat();
if(!fmt.isSubset(rhs)) return fmt.isSubset(rhs);
return false;
return true;
} }
/** /**
......
...@@ -225,10 +225,7 @@ public class ColumnStyle extends Style implements Cloneable { ...@@ -225,10 +225,7 @@ public class ColumnStyle extends Style implements Cloneable {
return false; return false;
ColumnStyle tStyle = (ColumnStyle)style; ColumnStyle tStyle = (ColumnStyle)style;
if(colWidth!=tStyle.getColWidth()) return colWidth == tStyle.getColWidth();
return false;
return true;
} }
/** /**
......
...@@ -388,10 +388,7 @@ public class Format implements Cloneable { ...@@ -388,10 +388,7 @@ public class Format implements Cloneable {
if (rhs.align!= align) if (rhs.align!= align)
return false; return false;
if (rhs.vertAlign!= vertAlign) return rhs.vertAlign == vertAlign;
return false;
return true;
} }
/** /**
...@@ -426,9 +423,6 @@ public class Format implements Cloneable { ...@@ -426,9 +423,6 @@ public class Format implements Cloneable {
if (rhs.align!= align) if (rhs.align!= align)
return false; return false;
if (rhs.vertAlign!= vertAlign) return rhs.vertAlign == vertAlign;
return false;
return true;
} }
} }
...@@ -224,10 +224,7 @@ public class RowStyle extends Style implements Cloneable { ...@@ -224,10 +224,7 @@ public class RowStyle extends Style implements Cloneable {
return false; return false;
RowStyle tStyle = (RowStyle)style; RowStyle tStyle = (RowStyle)style;
if(rowHeight!=tStyle.getRowHeight()) return rowHeight == tStyle.getRowHeight();
return false;
return true;
} }
/** /**
......
...@@ -292,10 +292,6 @@ public final class Driver { ...@@ -292,10 +292,6 @@ public final class Driver {
private boolean isZip(String zipName) { private boolean isZip(String zipName) {
String str = zipName.toLowerCase(); String str = zipName.toLowerCase();
if (str.endsWith("sxw") || zipName.endsWith("sxc")) { return str.endsWith("sxw") || zipName.endsWith("sxc");
return true;
}
return false;
} }
} }
\ No newline at end of file
...@@ -416,10 +416,6 @@ public class ColourConverter { ...@@ -416,10 +416,6 @@ public class ColourConverter {
matchedRGB += getClosest(c.getGreen(), points) << 8; matchedRGB += getClosest(c.getGreen(), points) << 8;
matchedRGB += getClosest(c.getBlue(), points); matchedRGB += getClosest(c.getBlue(), points);
if (matchedRGB == 0xC0C0C0) { return matchedRGB == 0xC0C0C0;
return true;
}
return false;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment