Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / io / FIo_FileImpl.cpp
index fa6a43d..014c8bd 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -567,22 +566,12 @@ _FileImpl::GetAttributes(const String& filePath, FileAttributes& attribute)
 String
 _FileImpl::GetFileName(const String& filePath)
 {
-       String fileName;
-       SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, fileName, E_INVALID_ARG,
-                       "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
-                       filePath.GetPointer());
-
        return _FileUtil::GetFileName(filePath);
 }
 
 String
 _FileImpl::GetFileExtension(const String& filePath)
 {
-       String extName;
-       SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, extName, E_INVALID_ARG,
-                       "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
-                       filePath.GetPointer());
-
        return _FileUtil::GetFileExtension(filePath);
 }