summaryrefslogtreecommitdiff
path: root/src/select/hash.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-17 16:52:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-17 16:52:58 +0000
commit0b8fa4588234105a91ecd5dbd6630f3be9122eb6 (patch)
tree9360baed127298d952568d2959bbb2c893fa4c0e /src/select/hash.c
parenta42d7a65974774b4520c23d73d71dd1a776926bb (diff)
downloadlibcss-0b8fa4588234105a91ecd5dbd6630f3be9122eb6.tar.gz
libcss-0b8fa4588234105a91ecd5dbd6630f3be9122eb6.tar.bz2
Fix utterly broken selector chain search code.
svn path=/trunk/libcss/; revision=8604
Diffstat (limited to 'src/select/hash.c')
-rw-r--r--src/select/hash.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/select/hash.c b/src/select/hash.c
index 62df88c..2f33877 100644
--- a/src/select/hash.c
+++ b/src/select/hash.c
@@ -240,18 +240,6 @@ css_error css_selector_hash_find(css_selector_hash *hash,
head = &hash->slots[index];
- if (head->sel != NULL) {
- do {
- if (head->sel->data.name == name)
- break;
-
- head = head->next;
- } while (head != NULL);
-
- if (head == NULL)
- head = &empty_slot;
- }
-
(*matched) = (const css_selector **) head;
return CSS_OK;