summaryrefslogtreecommitdiffstats
path: root/Header.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-26 16:15:09 +1100
committerBenBE <BenBE@geshi.org>2020-11-26 23:55:53 +0100
commitfee217551c12754db517d1badd448fc9064a48a8 (patch)
tree85fd6afea51b06c96a9b8c5c45077599d86324cb /Header.h
parent83bf8cfad6a56ff1cd74ddbac61787ba68f14503 (diff)
Drop unneeded parameters to the ScreenManager constructor
All calls to ScreenManager_new always pass the same first five values, the orientation is always HORIZONTAL and the y1 parameter is always the height of the passed-in header struct pointer. I think its safe to assert at this point that no VERTICAL orientation will arrive (if it does, its no harm in re-adding this then) - so we can remove unused conditionals (and TODOs) based on orientation too.
Diffstat (limited to 'Header.h')
-rw-r--r--Header.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Header.h b/Header.h
index f99966c3..3494cdd0 100644
--- a/Header.h
+++ b/Header.h
@@ -15,7 +15,7 @@ in the source distribution for its full text.
typedef struct Header_ {
Vector** columns;
Settings* settings;
- struct ProcessList_* pl;
+ ProcessList* pl;
int nrColumns;
int pad;
int height;
@@ -23,7 +23,7 @@ typedef struct Header_ {
#define Header_forEachColumn(this_, i_) for (int (i_)=0; (i_) < (this_)->nrColumns; ++(i_))
-Header* Header_new(struct ProcessList_* pl, Settings* settings, int nrColumns);
+Header* Header_new(ProcessList* pl, Settings* settings, int nrColumns);
void Header_delete(Header* this);

© 2014-2024 Faster IT GmbH | imprint | privacy policy