diff --git a/build.sh b/build.sh
index 4568361617b9a73c82f447f1c4afeb1fc448fc48..7ca95002fa11617d4247450353b6cef27fca91c6 100755
--- a/build.sh
+++ b/build.sh
@@ -177,17 +177,7 @@ build_docs()
   echo Hello world  > documentation.txt
   upload_item docs documentation.txt text/plain
   end_section "Stub documentation.txt"
-  begin_section "Dependency Graph"
-  depends_graph="$build_dir/dependancies.png"
-  echo "$AUTOBUILD" graph --output "$depends_graph"
-  if "$AUTOBUILD" graph --output "$depends_graph" >> "$build_log" 2>&1
-  then 
-    record_event "autobuild graph succeeded"
-    uplaod_item docs "$depends_graph" image/png
-  else 
-    record_event "autobuild graph failed"
-  fi
-  end_section "Dependency Graph"
+  record_dependencies_graph # defined in build.sh
   end_section "Building Documentation"
 }