message: Remove buildSnapshotTree from server
  Part 1 of fixing other part adds it to client code and updates consumers
  Remove buildSnapshotTree and associated functions from server code because it isn't used there.
diff: * Licensed under the MIT License.
  */
  -import assert from "assert";
  -import { gitHashFile } from "@fluidframework/common-utils";
  import * as git from "@fluidframework/gitresources";
  import {
  FileMode,
  @@ -17,73 +15,6 @@ import {
  SummaryObject,
  } from "@fluidframework/protocol-definitions";
  -/**
  - * Create a flatten view of an array of ITreeEntry
  - *
  - * @param tree - an array of ITreeEntry to flatten
  - * @param blobMap - a map of blob's sha1 to content
  - * @returns A flatten with of the ITreeEntry
  - */
  -function flatten(tree: ITreeEntry[], blobMap: Map<string, string>): git.ITree {
  - const entries = flattenCore("", tree, blobMap);
  - return {
  - sha: "",
  - tree: entries,
  - url: "",
  - };
  -}
  -
  -function flattenCore(path: string, treeEntries: ITreeEntry[], blobMap: Map<string, string>): git.ITreeEntry[] {
  - const entries: git.ITreeEntry[] = [];
  - for (const treeEntry of treeEntries) {
  - const subPath = `${path}${treeEntry.path}`;
  -
  - if (treeEntry.type === TreeEntry[TreeEntry.Blob]) {
  - const blob = treeEntry.value as IBlob;
  - const buffer = Buffer.from(blob.contents, blob.encoding);
  - const sha = gitHashFile(buffer);
  - blobMap.set(sha, buffer.toString("base64"));
  -
  - const entry: git.ITreeEntry = {
  - mode: FileMode[treeEntry.mode],
  - path: subPath,
  - sha,
  - size: buffer.length,
  - type: "blob",
  - url: "",
  - };
  - entries.push(entry);
  - } else if (treeEntry.type === TreeEntry[TreeEntry.Commit]) {
  - const entry: git.ITreeEntry = {
  - mode: FileMode[treeEntry.mode],
  - path: subPath,
  - sha: treeEntry.value as string,
  - size: -1,
  - type: "commit",
  - url: "",
  - };
  - entries.push(entry);
  - } else {
  - assert(treeEntry.type === TreeEntry[TreeEntry.Tree]);
  - const t = treeEntry.value as ITree;
  - const entry: git.ITreeEntry = {
  - mode: FileMode[treeEntry.mode],
  - path: subPath,
  - sha: "",
  - size: -1,
  - type: "tree",
  - url: "",
  - };
  - entries.push(entry);
  -
  - const subTreeEntries = flattenCore(`${subPath}/`, t.entries, blobMap);
  - entries.push(...subTreeEntries);
  - }
  - }
  -
  - return entries;
  -}
  -
  /**
  * Take a summary object and returns its git mode.
  *
  @@ -125,18 +56,6 @@ export function getGitType(value: SummaryObject): string {
  }
  }
  -/**
  - * Build a tree hierarchy base on an array of ITreeEntry
  - *
  - * @param entries - an array of ITreeEntry to flatten
  - * @param blobMap - a map of blob's sha1 to content
  - * @returns the hierarchical tree
  - */
  -export function buildSnapshotTree(entries: ITreeEntry[], blobMap: Map<string, string>): ISnapshotTree {
  - const flattened = flatten(entries, blobMap);
  - return buildHierarchy(flattened);
  -}
  -
  /**
  * Build a tree hierarchy base on a flat tree
  *
  