]> wimlib.net Git - wimlib/commitdiff
Remove unneeded code
authorEric Biggers <ebiggers3@gmail.com>
Tue, 4 Sep 2012 14:23:49 +0000 (09:23 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 4 Sep 2012 14:23:49 +0000 (09:23 -0500)
src/lookup_table.c
src/ntfs-apply.c
src/symlink.c

index 3a1e2d25fa6b7060504115f6d9d2876d19938d2e..57bbc0c63d9bb1c116f7a6147cd55d1129d1a37b 100644 (file)
@@ -560,8 +560,8 @@ int dentry_resolve_ltes(struct dentry *dentry, void *table)
  * data stream in one of the alternate data streams instead of inside the WIM
  * dentry itself.  So we need to check the alternate data streams too.
  *
- * Also, note that a dentry may appear to have than one unnamed stream, but if
- * the SHA1 message digest is all 0's then the corresponding stream does not
+ * Also, note that a dentry may appear to have more than one unnamed stream, but
+ * if the SHA1 message digest is all 0's then the corresponding stream does not
  * really "count" (this is the case for the inode's own file stream when the
  * file stream that should be there is actually in one of the alternate stream
  * entries.).  This is despite the fact that we may need to extract such a
index 3f4157d7074f694a0f230456894d958833ae0ebd..6409472a3c866d1ee5a8ea0055a4390ee2d68ee1 100644 (file)
@@ -54,13 +54,6 @@ struct ntfs_apply_args {
        WIMStruct *w;
 };
 
-
-#if 0
-extern int ntfs_set_inode_security(ntfs_inode *ni, u32 selection,
-                                  const char *attr);
-extern int ntfs_set_inode_attributes(ntfs_inode *ni, u32 attrib);
-#endif
-
 /* 
  * Extracts a WIM resource to a NTFS attribute.
  */
index 83070ba5b3a976e3754df57269c9e2ccc4c94da8..59072ac0dc56da425c71ba50e66f7977fcb863b3 100644 (file)
@@ -185,32 +185,6 @@ ssize_t inode_readlink(const struct inode *inode, char *buf, size_t buf_len,
                                buf_len, inode->reparse_tag);
 }
 
-static int inode_set_symlink_buf(struct inode *inode,
-                                struct lookup_table_entry *lte)
-{
-#if 0
-       struct ads_entry *ads_entries;
-
-       ads_entries = MALLOC(2, sizeof(struct ads_entry));
-       if (!ads_entries)
-               return WIMLIB_ERR_NOMEM;
-       ads_entry_init(&ads_entries[0]);
-       ads_entry_init(&ads_entries[1]);
-
-       wimlib_assert(dentry->num_ads == 0);
-       wimlib_assert(dentry->ads_entries == NULL);
-
-       ads_entries[0].lte = lte;
-
-       /*dentry_free_ads_entries(dentry);*/
-       dentry->num_ads = 2;
-       dentry->ads_entries = ads_entries;
-#endif
-       wimlib_assert(inode->resolved);
-       inode->lte = lte;
-       return 0;
-}
-
 /* 
  * Sets @dentry to be a symbolic link pointing to @target.
  *
@@ -262,11 +236,7 @@ int inode_set_symlink(struct inode *inode, const char *target,
                copy_hash(lte->hash, symlink_buf_hash);
        }
 
-       ret = inode_set_symlink_buf(inode, lte);
-
-       if (ret != 0)
-               goto out_free_lte;
-
+       inode->lte = lte;
        inode->resolved = true;
 
        DEBUG("Loaded symlink buf");