aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-03-03 11:23:19 +1100
committernyamatongwe <devnull@localhost>2012-03-03 11:23:19 +1100
commit6cb4bae0e6cdf9ad081a89e8c33bd936acb5e43d (patch)
treee8481fead546489e43b4d5a4772bc6dd8aa818c2
parent076195fdbf7b9cedb22da085e37c7a8642eb5a41 (diff)
downloadscintilla-mirror-6cb4bae0e6cdf9ad081a89e8c33bd936acb5e43d.tar.gz
Remove unused variables. Bug #3494744. From Marko Njezic.
-rw-r--r--src/Style.cxx2
-rw-r--r--src/Style.h2
-rw-r--r--src/ViewStyle.cxx2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/Style.cxx b/src/Style.cxx
index ed30f5529..375738c67 100644
--- a/src/Style.cxx
+++ b/src/Style.cxx
@@ -45,10 +45,8 @@ FontMeasurements::FontMeasurements() {
}
void FontMeasurements::Clear() {
- lineHeight = 2;
ascent = 1;
descent = 1;
- externalLeading = 0;
aveCharWidth = 1;
spaceWidth = 1;
sizeZoomed = 2;
diff --git a/src/Style.h b/src/Style.h
index cccf18f3e..85663acf2 100644
--- a/src/Style.h
+++ b/src/Style.h
@@ -43,10 +43,8 @@ public:
};
struct FontMeasurements {
- unsigned int lineHeight;
unsigned int ascent;
unsigned int descent;
- unsigned int externalLeading;
XYPOSITION aveCharWidth;
XYPOSITION spaceWidth;
int sizeZoomed;
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 39d57b27c..737a23183 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -98,8 +98,6 @@ void FontRealised::Realise(Surface &surface, int zoomLevel, int technology) {
ascent = surface.Ascent(font);
descent = surface.Descent(font);
- externalLeading = surface.ExternalLeading(font);
- lineHeight = surface.Height(font);
aveCharWidth = surface.AverageCharWidth(font);
spaceWidth = surface.WidthChar(font, ' ');
if (frNext) {