g_file_error_from_errno: Remove unneeded breaks

Just wasting space

https://bugzilla.gnome.org/show_bug.cgi?id=710625
This commit is contained in:
Bastien Nocera 2013-10-18 14:37:31 +02:00 committed by Ryan Lortie
parent 1b592524ff
commit 5a3fd63246

View File

@ -484,150 +484,125 @@ g_file_error_from_errno (gint err_no)
#ifdef EEXIST #ifdef EEXIST
case EEXIST: case EEXIST:
return G_FILE_ERROR_EXIST; return G_FILE_ERROR_EXIST;
break;
#endif #endif
#ifdef EISDIR #ifdef EISDIR
case EISDIR: case EISDIR:
return G_FILE_ERROR_ISDIR; return G_FILE_ERROR_ISDIR;
break;
#endif #endif
#ifdef EACCES #ifdef EACCES
case EACCES: case EACCES:
return G_FILE_ERROR_ACCES; return G_FILE_ERROR_ACCES;
break;
#endif #endif
#ifdef ENAMETOOLONG #ifdef ENAMETOOLONG
case ENAMETOOLONG: case ENAMETOOLONG:
return G_FILE_ERROR_NAMETOOLONG; return G_FILE_ERROR_NAMETOOLONG;
break;
#endif #endif
#ifdef ENOENT #ifdef ENOENT
case ENOENT: case ENOENT:
return G_FILE_ERROR_NOENT; return G_FILE_ERROR_NOENT;
break;
#endif #endif
#ifdef ENOTDIR #ifdef ENOTDIR
case ENOTDIR: case ENOTDIR:
return G_FILE_ERROR_NOTDIR; return G_FILE_ERROR_NOTDIR;
break;
#endif #endif
#ifdef ENXIO #ifdef ENXIO
case ENXIO: case ENXIO:
return G_FILE_ERROR_NXIO; return G_FILE_ERROR_NXIO;
break;
#endif #endif
#ifdef ENODEV #ifdef ENODEV
case ENODEV: case ENODEV:
return G_FILE_ERROR_NODEV; return G_FILE_ERROR_NODEV;
break;
#endif #endif
#ifdef EROFS #ifdef EROFS
case EROFS: case EROFS:
return G_FILE_ERROR_ROFS; return G_FILE_ERROR_ROFS;
break;
#endif #endif
#ifdef ETXTBSY #ifdef ETXTBSY
case ETXTBSY: case ETXTBSY:
return G_FILE_ERROR_TXTBSY; return G_FILE_ERROR_TXTBSY;
break;
#endif #endif
#ifdef EFAULT #ifdef EFAULT
case EFAULT: case EFAULT:
return G_FILE_ERROR_FAULT; return G_FILE_ERROR_FAULT;
break;
#endif #endif
#ifdef ELOOP #ifdef ELOOP
case ELOOP: case ELOOP:
return G_FILE_ERROR_LOOP; return G_FILE_ERROR_LOOP;
break;
#endif #endif
#ifdef ENOSPC #ifdef ENOSPC
case ENOSPC: case ENOSPC:
return G_FILE_ERROR_NOSPC; return G_FILE_ERROR_NOSPC;
break;
#endif #endif
#ifdef ENOMEM #ifdef ENOMEM
case ENOMEM: case ENOMEM:
return G_FILE_ERROR_NOMEM; return G_FILE_ERROR_NOMEM;
break;
#endif #endif
#ifdef EMFILE #ifdef EMFILE
case EMFILE: case EMFILE:
return G_FILE_ERROR_MFILE; return G_FILE_ERROR_MFILE;
break;
#endif #endif
#ifdef ENFILE #ifdef ENFILE
case ENFILE: case ENFILE:
return G_FILE_ERROR_NFILE; return G_FILE_ERROR_NFILE;
break;
#endif #endif
#ifdef EBADF #ifdef EBADF
case EBADF: case EBADF:
return G_FILE_ERROR_BADF; return G_FILE_ERROR_BADF;
break;
#endif #endif
#ifdef EINVAL #ifdef EINVAL
case EINVAL: case EINVAL:
return G_FILE_ERROR_INVAL; return G_FILE_ERROR_INVAL;
break;
#endif #endif
#ifdef EPIPE #ifdef EPIPE
case EPIPE: case EPIPE:
return G_FILE_ERROR_PIPE; return G_FILE_ERROR_PIPE;
break;
#endif #endif
#ifdef EAGAIN #ifdef EAGAIN
case EAGAIN: case EAGAIN:
return G_FILE_ERROR_AGAIN; return G_FILE_ERROR_AGAIN;
break;
#endif #endif
#ifdef EINTR #ifdef EINTR
case EINTR: case EINTR:
return G_FILE_ERROR_INTR; return G_FILE_ERROR_INTR;
break;
#endif #endif
#ifdef EIO #ifdef EIO
case EIO: case EIO:
return G_FILE_ERROR_IO; return G_FILE_ERROR_IO;
break;
#endif #endif
#ifdef EPERM #ifdef EPERM
case EPERM: case EPERM:
return G_FILE_ERROR_PERM; return G_FILE_ERROR_PERM;
break;
#endif #endif
#ifdef ENOSYS #ifdef ENOSYS
case ENOSYS: case ENOSYS:
return G_FILE_ERROR_NOSYS; return G_FILE_ERROR_NOSYS;
break;
#endif #endif
default: default:
return G_FILE_ERROR_FAILED; return G_FILE_ERROR_FAILED;
break;
} }
} }