summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-16 22:06:17 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-16 22:06:17 (GMT)
commitfd6f0fc112efb4c2b9167172390d69458e9c29b9 (patch)
treee562d6484cd74bb32cc0f66113e87a6a11449478
parente770c9bef329f76f60a56a66b11c614009812a16 (diff)
downloadtk-fd6f0fc112efb4c2b9167172390d69458e9c29b9.zip
tk-fd6f0fc112efb4c2b9167172390d69458e9c29b9.tar.gz
tk-fd6f0fc112efb4c2b9167172390d69458e9c29b9.tar.bz2
Cleanup of bounds in button code.
-rw-r--r--macosx/tkMacOSXButton.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index cfd338b..1a54514 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -410,12 +410,6 @@ TkpComputeButtonGeometry(
/* Pad to fill difference between content bounds and button bounds. */
paddingx = contBounds.origin.x;
paddingy = contBounds.origin.y;
- if (paddingx > 0) {
- //width += paddingx;
- }
- if (paddingy > 0) {
- //height += paddingy;
- }
if (height < paddingx - 4) {
/* can't have buttons much shorter than button side diameter. */