diff --git a/src/obj/NiTriShapeData.cpp b/src/obj/NiTriShapeData.cpp
index f903b801c6511cabb2eeeb9bcd595fbf43928074..bad42861e15c1e34035652ff409df2b9aa34224b 100644
--- a/src/obj/NiTriShapeData.cpp
+++ b/src/obj/NiTriShapeData.cpp
@@ -237,7 +237,6 @@ void NiTriShapeData::DoMatchDetection() {
 		/* the currently observed vertex shares a normal with others */
 		if ( ( group.numVertices = group.vertexIndices.size() ) > 1 ) {
 			/* mark all of the participating vertices to belong to a group */
-			unsigned short groupid = matchGroups.size() + 1;
 			for ( unsigned short n = 0; n < group.numVertices; n++ )
 				is_shared[group.vertexIndices[n]] = true;