]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
scratch: Remove (now unused) tctxtToScratch
authorJustin Viiret <justin.viiret@intel.com>
Tue, 15 Mar 2016 05:31:13 +0000 (16:31 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 20 Apr 2016 03:34:54 +0000 (13:34 +1000)
src/scratch.h

index 99cdb370096ce380f5328a2c509356d9ac1c95c0..dc99106f9ae5e5388c8e69a84552f5317bcd5154 100644 (file)
@@ -180,12 +180,6 @@ struct ALIGN_CL_DIRECTIVE hs_scratch {
     u32 som_store_count;
 };
 
-static really_inline
-struct hs_scratch *tctxtToScratch(struct RoseContext *tctxt) {
-    return (struct hs_scratch *)
-        ((char *)tctxt - offsetof(struct hs_scratch, tctxt));
-}
-
 /* array of fatbit ptr; TODO: why not an array of fatbits? */
 static really_inline
 struct fatbit **getAnchoredLiteralLog(struct hs_scratch *scratch) {