aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-23 00:16:42 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-23 00:16:42 +0200
commit97f0a27ab0cbf605ba789be553c0df3bb44a6787 (patch)
tree78d2c78343b43a8dcaab8df627af578ba9574b37 /c/common.h
parent21e96c692595f204b91431a90123419e4a1780c4 (diff)
downloadEpisodeBrowser-97f0a27ab0cbf605ba789be553c0df3bb44a6787.tar.gz
Improve UpdateLayout and ResizeColumns.
This incidentally removes the need for the variable template introduced by 21e96c6. I'm sure it will be needed at some point, though.
Diffstat (limited to 'c/common.h')
-rw-r--r--c/common.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/c/common.h b/c/common.h
index c6c7dbd..5fe6d62 100644
--- a/c/common.h
+++ b/c/common.h
@@ -54,10 +54,6 @@ std::optional<T> maybe_make(U... xs)
}
}
-/* Variable template for caching values from GetSystemMetrics. */
-template <int I>
-const auto Metric = GetSystemMetrics(I);
-
/* Check result of Windows API call, throwing error on NULL. */
template <typename T>
inline T require(const T x)