X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyaffs_attribs.c;h=5486bdd142b9512ab1cabe65b14cec0f5d772c30;hb=bea98f5620164935228415a5f925b03ddf3143af;hp=de80fe42fcd0e70f7a147707b900b55f67fcca9d;hpb=319d4f76f0e10d1d6427120221237950e373d74b;p=yaffs2.git diff --git a/direct/yaffs_attribs.c b/direct/yaffs_attribs.c index de80fe4..5486bdd 100644 --- a/direct/yaffs_attribs.c +++ b/direct/yaffs_attribs.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -87,22 +86,3 @@ void yaffs_load_current_time(struct yaffs_obj *obj, int do_a, int do_c) obj->yst_ctime = obj->yst_atime; #endif } - -static Y_LOFF_T yaffs_get_file_size(struct yaffs_obj *obj) -{ - YCHAR *alias = NULL; - obj = yaffs_get_equivalent_obj(obj); - - switch (obj->variant_type) { - case YAFFS_OBJECT_TYPE_FILE: - return obj->variant.file_variant.file_size; - case YAFFS_OBJECT_TYPE_SYMLINK: - alias = obj->variant.symlink_variant.alias; - if (!alias) - return 0; - return yaffs_strnlen(alias, YAFFS_MAX_ALIAS_LENGTH); - default: - return 0; - } -} -