diff --git a/modules/node/node.module b/modules/node/node.module
index 04911de..88a26a8 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -986,8 +986,6 @@ function node_object_prepare($node) {
  * Perform validation checks on the given node.
  */
 function node_validate($node, $form, &$form_state) {
-  $type = node_type_get_type($node);
-
   if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {
     form_set_error('changed', t('The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved.'));
   }
