From c937d5670ff77abdf99a94829754bd6abe65ee90 Mon Sep 17 00:00:00 2001 From: Peter Clifton Date: Thu, 3 Jan 2013 16:53:33 +0000 Subject: [PATCH] find.c: Remove unnecessary PIN/VIA test from SetThing() This is not needed since commit d581a90edc7fb7c0b4c6351611cc4a6689d7620b which put similar code into ADD_PV_TO_LIST(), the only caller which could have previously resulted in a SetThing call with the wrong type. --- src/find.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/find.c b/src/find.c index 0f85f3effe..d10499de5a 100644 --- a/src/find.c +++ b/src/find.c @@ -405,11 +405,6 @@ SetThing (int type, void *ptr1, void *ptr2, void *ptr3) thing_ptr2 = ptr2; thing_ptr3 = ptr3; thing_type = type; - if (type == PIN_TYPE && ptr1 == NULL) - { - thing_ptr1 = ptr3; - thing_type = VIA_TYPE; - } return true; } -- 2.11.4.GIT